3.508 \(\int \frac {\tanh ^{-1}(x)}{a+b x} \, dx\)

Optimal. Leaf size=86 \[ -\frac {\text {Li}_2\left (1-\frac {2 (a+b x)}{(a+b) (x+1)}\right )}{2 b}+\frac {\tanh ^{-1}(x) \log \left (\frac {2 (a+b x)}{(x+1) (a+b)}\right )}{b}+\frac {\text {Li}_2\left (1-\frac {2}{x+1}\right )}{2 b}-\frac {\log \left (\frac {2}{x+1}\right ) \tanh ^{-1}(x)}{b} \]

[Out]

-arctanh(x)*ln(2/(1+x))/b+arctanh(x)*ln(2*(b*x+a)/(a+b)/(1+x))/b+1/2*polylog(2,1-2/(1+x))/b-1/2*polylog(2,1-2*
(b*x+a)/(a+b)/(1+x))/b

________________________________________________________________________________________

Rubi [A]  time = 0.06, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {5920, 2402, 2315, 2447} \[ -\frac {\text {PolyLog}\left (2,1-\frac {2 (a+b x)}{(x+1) (a+b)}\right )}{2 b}+\frac {\text {PolyLog}\left (2,1-\frac {2}{x+1}\right )}{2 b}+\frac {\tanh ^{-1}(x) \log \left (\frac {2 (a+b x)}{(x+1) (a+b)}\right )}{b}-\frac {\log \left (\frac {2}{x+1}\right ) \tanh ^{-1}(x)}{b} \]

Antiderivative was successfully verified.

[In]

Int[ArcTanh[x]/(a + b*x),x]

[Out]

-((ArcTanh[x]*Log[2/(1 + x)])/b) + (ArcTanh[x]*Log[(2*(a + b*x))/((a + b)*(1 + x))])/b + PolyLog[2, 1 - 2/(1 +
 x)]/(2*b) - PolyLog[2, 1 - (2*(a + b*x))/((a + b)*(1 + x))]/(2*b)

Rule 2315

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> -Simp[PolyLog[2, 1 - c*x]/e, x] /; FreeQ[{c, d, e}, x] &
& EqQ[e + c*d, 0]

Rule 2402

Int[Log[(c_.)/((d_) + (e_.)*(x_))]/((f_) + (g_.)*(x_)^2), x_Symbol] :> -Dist[e/g, Subst[Int[Log[2*d*x]/(1 - 2*
d*x), x], x, 1/(d + e*x)], x] /; FreeQ[{c, d, e, f, g}, x] && EqQ[c, 2*d] && EqQ[e^2*f + d^2*g, 0]

Rule 2447

Int[Log[u_]*(Pq_)^(m_.), x_Symbol] :> With[{C = FullSimplify[(Pq^m*(1 - u))/D[u, x]]}, Simp[C*PolyLog[2, 1 - u
], x] /; FreeQ[C, x]] /; IntegerQ[m] && PolyQ[Pq, x] && RationalFunctionQ[u, x] && LeQ[RationalFunctionExponen
ts[u, x][[2]], Expon[Pq, x]]

Rule 5920

Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))/((d_) + (e_.)*(x_)), x_Symbol] :> -Simp[((a + b*ArcTanh[c*x])*Log[2/(1
 + c*x)])/e, x] + (Dist[(b*c)/e, Int[Log[2/(1 + c*x)]/(1 - c^2*x^2), x], x] - Dist[(b*c)/e, Int[Log[(2*c*(d +
e*x))/((c*d + e)*(1 + c*x))]/(1 - c^2*x^2), x], x] + Simp[((a + b*ArcTanh[c*x])*Log[(2*c*(d + e*x))/((c*d + e)
*(1 + c*x))])/e, x]) /; FreeQ[{a, b, c, d, e}, x] && NeQ[c^2*d^2 - e^2, 0]

Rubi steps

\begin {align*} \int \frac {\tanh ^{-1}(x)}{a+b x} \, dx &=-\frac {\tanh ^{-1}(x) \log \left (\frac {2}{1+x}\right )}{b}+\frac {\tanh ^{-1}(x) \log \left (\frac {2 (a+b x)}{(a+b) (1+x)}\right )}{b}+\frac {\int \frac {\log \left (\frac {2}{1+x}\right )}{1-x^2} \, dx}{b}-\frac {\int \frac {\log \left (\frac {2 (a+b x)}{(a+b) (1+x)}\right )}{1-x^2} \, dx}{b}\\ &=-\frac {\tanh ^{-1}(x) \log \left (\frac {2}{1+x}\right )}{b}+\frac {\tanh ^{-1}(x) \log \left (\frac {2 (a+b x)}{(a+b) (1+x)}\right )}{b}-\frac {\text {Li}_2\left (1-\frac {2 (a+b x)}{(a+b) (1+x)}\right )}{2 b}+\frac {\operatorname {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+x}\right )}{b}\\ &=-\frac {\tanh ^{-1}(x) \log \left (\frac {2}{1+x}\right )}{b}+\frac {\tanh ^{-1}(x) \log \left (\frac {2 (a+b x)}{(a+b) (1+x)}\right )}{b}+\frac {\text {Li}_2\left (1-\frac {2}{1+x}\right )}{2 b}-\frac {\text {Li}_2\left (1-\frac {2 (a+b x)}{(a+b) (1+x)}\right )}{2 b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C]  time = 0.09, size = 260, normalized size = 3.02 \[ \frac {-4 \text {Li}_2\left (e^{-2 \left (\tanh ^{-1}\left (\frac {a}{b}\right )+\tanh ^{-1}(x)\right )}\right )+8 \tanh ^{-1}(x) \tanh ^{-1}\left (\frac {a}{b}\right )+8 \tanh ^{-1}\left (\frac {a}{b}\right ) \log \left (1-e^{-2 \left (\tanh ^{-1}\left (\frac {a}{b}\right )+\tanh ^{-1}(x)\right )}\right )+8 \tanh ^{-1}(x) \log \left (1-e^{-2 \left (\tanh ^{-1}\left (\frac {a}{b}\right )+\tanh ^{-1}(x)\right )}\right )-8 \tanh ^{-1}\left (\frac {a}{b}\right ) \log \left (2 i \sinh \left (\tanh ^{-1}\left (\frac {a}{b}\right )+\tanh ^{-1}(x)\right )\right )+8 \tanh ^{-1}(x) \log \left (i \sinh \left (\tanh ^{-1}\left (\frac {a}{b}\right )+\tanh ^{-1}(x)\right )\right )-8 \tanh ^{-1}(x) \log \left (2 i \sinh \left (\tanh ^{-1}\left (\frac {a}{b}\right )+\tanh ^{-1}(x)\right )\right )+4 \tanh ^{-1}\left (\frac {a}{b}\right )^2-4 \text {Li}_2\left (-e^{2 \tanh ^{-1}(x)}\right )+4 i \pi \log \left (\frac {2}{\sqrt {1-x^2}}\right )+8 \log \left (\frac {2}{\sqrt {1-x^2}}\right ) \tanh ^{-1}(x)+4 \log \left (1-x^2\right ) \tanh ^{-1}(x)+8 \tanh ^{-1}(x)^2+4 i \pi \tanh ^{-1}(x)-8 \tanh ^{-1}(x) \log \left (e^{2 \tanh ^{-1}(x)}+1\right )-4 i \pi \log \left (e^{2 \tanh ^{-1}(x)}+1\right )-\pi ^2}{8 b} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[ArcTanh[x]/(a + b*x),x]

[Out]

(-Pi^2 + 4*ArcTanh[a/b]^2 + (4*I)*Pi*ArcTanh[x] + 8*ArcTanh[a/b]*ArcTanh[x] + 8*ArcTanh[x]^2 - (4*I)*Pi*Log[1
+ E^(2*ArcTanh[x])] - 8*ArcTanh[x]*Log[1 + E^(2*ArcTanh[x])] + 8*ArcTanh[a/b]*Log[1 - E^(-2*(ArcTanh[a/b] + Ar
cTanh[x]))] + 8*ArcTanh[x]*Log[1 - E^(-2*(ArcTanh[a/b] + ArcTanh[x]))] + (4*I)*Pi*Log[2/Sqrt[1 - x^2]] + 8*Arc
Tanh[x]*Log[2/Sqrt[1 - x^2]] + 4*ArcTanh[x]*Log[1 - x^2] + 8*ArcTanh[x]*Log[I*Sinh[ArcTanh[a/b] + ArcTanh[x]]]
 - 8*ArcTanh[a/b]*Log[(2*I)*Sinh[ArcTanh[a/b] + ArcTanh[x]]] - 8*ArcTanh[x]*Log[(2*I)*Sinh[ArcTanh[a/b] + ArcT
anh[x]]] - 4*PolyLog[2, -E^(2*ArcTanh[x])] - 4*PolyLog[2, E^(-2*(ArcTanh[a/b] + ArcTanh[x]))])/(8*b)

________________________________________________________________________________________

fricas [F]  time = 0.55, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\operatorname {artanh}\relax (x)}{b x + a}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctanh(x)/(b*x+a),x, algorithm="fricas")

[Out]

integral(arctanh(x)/(b*x + a), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {artanh}\relax (x)}{b x + a}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctanh(x)/(b*x+a),x, algorithm="giac")

[Out]

integrate(arctanh(x)/(b*x + a), x)

________________________________________________________________________________________

maple [A]  time = 0.07, size = 110, normalized size = 1.28 \[ \frac {\ln \left (b x +a \right ) \arctanh \relax (x )}{b}-\frac {\ln \left (b x +a \right ) \ln \left (\frac {b x +b}{-a +b}\right )}{2 b}-\frac {\dilog \left (\frac {b x +b}{-a +b}\right )}{2 b}+\frac {\ln \left (b x +a \right ) \ln \left (\frac {b x -b}{-a -b}\right )}{2 b}+\frac {\dilog \left (\frac {b x -b}{-a -b}\right )}{2 b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(arctanh(x)/(b*x+a),x)

[Out]

ln(b*x+a)/b*arctanh(x)-1/2/b*ln(b*x+a)*ln((b*x+b)/(-a+b))-1/2/b*dilog((b*x+b)/(-a+b))+1/2/b*ln(b*x+a)*ln((b*x-
b)/(-a-b))+1/2/b*dilog((b*x-b)/(-a-b))

________________________________________________________________________________________

maxima [A]  time = 0.30, size = 119, normalized size = 1.38 \[ -\frac {{\left (\log \left (x + 1\right ) - \log \left (x - 1\right )\right )} \log \left (b x + a\right )}{2 \, b} + \frac {\operatorname {artanh}\relax (x) \log \left (b x + a\right )}{b} - \frac {\log \left (x - 1\right ) \log \left (\frac {b x - b}{a + b} + 1\right ) + {\rm Li}_2\left (-\frac {b x - b}{a + b}\right )}{2 \, b} + \frac {\log \left (x + 1\right ) \log \left (\frac {b x + b}{a - b} + 1\right ) + {\rm Li}_2\left (-\frac {b x + b}{a - b}\right )}{2 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctanh(x)/(b*x+a),x, algorithm="maxima")

[Out]

-1/2*(log(x + 1) - log(x - 1))*log(b*x + a)/b + arctanh(x)*log(b*x + a)/b - 1/2*(log(x - 1)*log((b*x - b)/(a +
 b) + 1) + dilog(-(b*x - b)/(a + b)))/b + 1/2*(log(x + 1)*log((b*x + b)/(a - b) + 1) + dilog(-(b*x + b)/(a - b
)))/b

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\mathrm {atanh}\relax (x)}{a+b\,x} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(atanh(x)/(a + b*x),x)

[Out]

int(atanh(x)/(a + b*x), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\operatorname {atanh}{\relax (x )}}{a + b x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(atanh(x)/(b*x+a),x)

[Out]

Integral(atanh(x)/(a + b*x), x)

________________________________________________________________________________________